﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TimbreRecognition.Recognition
{
    public abstract class AbstractNeuron
    {

        private double[] weights;

        private double output;

        public AbstractNeuron() { }

        public AbstractNeuron(double[] weights)
        {
            this.weights = weights;
        }

        public double[] getWeights()
        {
            return weights;
        }

        public double getOutput()
        {
            return output;
        }

        protected void setOutput(double output)
        {
            this.output = output;
        }

        public virtual void setWeights(double[] weights)
        {
            this.weights = weights;
        }

        public abstract void recalculateOutput(double[] input);
    }
}
